import request from '@/utils/request'

export function getList(query) {
    return request({
        url: `/parking/getParkData`,
        method: 'get',
        params: query
    })
}

export function getList2(query) {
    return request({
        url: `/users/getUsersData`,
        method: 'get',
        params: query
    })
}

export function editParkData(data) {
    return request({
        url: `/parking/editParkData`,
        method: "post",
        data: data
    })
}

export function addParkData(data) {
    return request({
        url: `/parking/addParkData`,
        method: "post",
        data: data
    })
}

export function delParkData(query) {
    return request({
        url: `/parking/delParkData`,
        method: 'get',
        params: query
    })
}

export function updateParkStatus(data) {
    return request({
        url: `/users/updateParkStatus`,
        method: "post",
        data: data
    })
}


